package itcz.example.pattern.create_action.singleton.demo7;

/**
 * @ClassName: Singleton
 * @Author: ITCZ
 * @Date: 2025-04-21
 * @Description: 恶汉式4(枚举方式),不会被反射和序列化破坏
 */
public enum DatabasePool {

    INSTANCE;
    public void getConnection() {
        System.out.println("获取连接池实例");
    }
}
